<?php

/* 样板 Sample */
class Pro_recordsModel extends BaseModel
{
    var $table  = 'pro_records';
    var $prikey = 'pro_id';
    var $_name  = 'pro_records';
	
    var $_relation = array(
		'belongs_sample' => array(
			'model' => 'sample',
			'type' => BELONGS_TO,
			'foreign_key' => 'sample_id',
            'reverse'       => 'has_sourcing',
		)
	);
	
}

?>